package project.innovation.mooddiagnosis.service;

import org.springframework.web.multipart.MultipartFile;
import project.innovation.mooddiagnosis.entity.file.ChunkInfo;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

public interface ChunkService {
    Integer saveChunk(MultipartFile chunk, String md5, Integer index, Long chunkSize, String chunkFileName, String chunkFileName_changed) throws IOException, InterruptedException;
    List<ChunkInfo> selectChunkListByMd5(String md5);
    void deleteChunkByMd5(String md5);
    byte[] getChunk(Integer index, Integer chunkSize, String resultFileName, long offset);
    Integer mergeChunk(String md5, String resultFileName, Integer index) throws IOException, InterruptedException;
}
